/*
 *  This file is part of the SIRIUS libraries for analyzing MS and MS/MS data
 *
 *  Copyright (C) 2024 Bright Giant GmbH
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along with SIRIUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 *  https://openapi-generator.tech
 *  Do not edit the class manually.
 */


package io.sirius.ms.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * AllowedFeatures
 */
@JsonPropertyOrder({
  AllowedFeatures.JSON_PROPERTY_CLI,
  AllowedFeatures.JSON_PROPERTY_API,
  AllowedFeatures.JSON_PROPERTY_DE_NOVO,
  AllowedFeatures.JSON_PROPERTY_IMPORT_M_S_RUNS,
  AllowedFeatures.JSON_PROPERTY_IMPORT_PEAK_LISTS,
  AllowedFeatures.JSON_PROPERTY_IMPORT_CEF
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0")
public class AllowedFeatures {
  public static final String JSON_PROPERTY_CLI = "cli";
  @jakarta.annotation.Nullable
  private Boolean cli;

  public static final String JSON_PROPERTY_API = "api";
  @jakarta.annotation.Nullable
  private Boolean api;

  public static final String JSON_PROPERTY_DE_NOVO = "deNovo";
  @jakarta.annotation.Nullable
  private Boolean deNovo;

  public static final String JSON_PROPERTY_IMPORT_M_S_RUNS = "importMSRuns";
  @jakarta.annotation.Nullable
  private Boolean importMSRuns;

  public static final String JSON_PROPERTY_IMPORT_PEAK_LISTS = "importPeakLists";
  @jakarta.annotation.Nullable
  private Boolean importPeakLists;

  public static final String JSON_PROPERTY_IMPORT_CEF = "importCef";
  @jakarta.annotation.Nullable
  private Boolean importCef;

  public AllowedFeatures() {
  }

  public AllowedFeatures cli(@jakarta.annotation.Nullable Boolean cli) {
    
    this.cli = cli;
    return this;
  }

  /**
   * Get cli
   * @return cli
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CLI)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isCli() {
    return cli;
  }


  @JsonProperty(JSON_PROPERTY_CLI)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCli(@jakarta.annotation.Nullable Boolean cli) {
    this.cli = cli;
  }

  public AllowedFeatures api(@jakarta.annotation.Nullable Boolean api) {
    
    this.api = api;
    return this;
  }

  /**
   * Get api
   * @return api
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_API)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isApi() {
    return api;
  }


  @JsonProperty(JSON_PROPERTY_API)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setApi(@jakarta.annotation.Nullable Boolean api) {
    this.api = api;
  }

  public AllowedFeatures deNovo(@jakarta.annotation.Nullable Boolean deNovo) {
    
    this.deNovo = deNovo;
    return this;
  }

  /**
   * Get deNovo
   * @return deNovo
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_DE_NOVO)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isDeNovo() {
    return deNovo;
  }


  @JsonProperty(JSON_PROPERTY_DE_NOVO)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeNovo(@jakarta.annotation.Nullable Boolean deNovo) {
    this.deNovo = deNovo;
  }

  public AllowedFeatures importMSRuns(@jakarta.annotation.Nullable Boolean importMSRuns) {
    
    this.importMSRuns = importMSRuns;
    return this;
  }

  /**
   * Get importMSRuns
   * @return importMSRuns
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_IMPORT_M_S_RUNS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isImportMSRuns() {
    return importMSRuns;
  }


  @JsonProperty(JSON_PROPERTY_IMPORT_M_S_RUNS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setImportMSRuns(@jakarta.annotation.Nullable Boolean importMSRuns) {
    this.importMSRuns = importMSRuns;
  }

  public AllowedFeatures importPeakLists(@jakarta.annotation.Nullable Boolean importPeakLists) {
    
    this.importPeakLists = importPeakLists;
    return this;
  }

  /**
   * Get importPeakLists
   * @return importPeakLists
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_IMPORT_PEAK_LISTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isImportPeakLists() {
    return importPeakLists;
  }


  @JsonProperty(JSON_PROPERTY_IMPORT_PEAK_LISTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setImportPeakLists(@jakarta.annotation.Nullable Boolean importPeakLists) {
    this.importPeakLists = importPeakLists;
  }

  public AllowedFeatures importCef(@jakarta.annotation.Nullable Boolean importCef) {
    
    this.importCef = importCef;
    return this;
  }

  /**
   * Get importCef
   * @return importCef
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_IMPORT_CEF)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isImportCef() {
    return importCef;
  }


  @JsonProperty(JSON_PROPERTY_IMPORT_CEF)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setImportCef(@jakarta.annotation.Nullable Boolean importCef) {
    this.importCef = importCef;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AllowedFeatures allowedFeatures = (AllowedFeatures) o;
    return Objects.equals(this.cli, allowedFeatures.cli) &&
        Objects.equals(this.api, allowedFeatures.api) &&
        Objects.equals(this.deNovo, allowedFeatures.deNovo) &&
        Objects.equals(this.importMSRuns, allowedFeatures.importMSRuns) &&
        Objects.equals(this.importPeakLists, allowedFeatures.importPeakLists) &&
        Objects.equals(this.importCef, allowedFeatures.importCef);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cli, api, deNovo, importMSRuns, importPeakLists, importCef);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AllowedFeatures {\n");
    sb.append("    cli: ").append(toIndentedString(cli)).append("\n");
    sb.append("    api: ").append(toIndentedString(api)).append("\n");
    sb.append("    deNovo: ").append(toIndentedString(deNovo)).append("\n");
    sb.append("    importMSRuns: ").append(toIndentedString(importMSRuns)).append("\n");
    sb.append("    importPeakLists: ").append(toIndentedString(importPeakLists)).append("\n");
    sb.append("    importCef: ").append(toIndentedString(importCef)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

